<?php

/**
 * Main configuration.
 * All properties can be overridden in mode_<mode>.php files
 */
return array(
	// Set yiiPath (relative to Environment.php)
	'yiiPath'=>'/PortableApps/Yii 1.1.8/framework/yii.php',
	'yiicPath'=>'/PortableApps/Yii 1.1.8/framework/yiic.php',
	'yiitPath'=>'/PortableApps/Yii 1.1.8/framework/yiit.php',
	// Set YII_DEBUG and YII_TRACE_LEVEL flags
	'yiiDebug'=>true,
	'yiiTraceLevel'=>0,
	// Static function Yii::setPathOfAlias()
	'yiiSetPathOfAlias'=>array(
	// uncomment the following to define a path alias
	//'local' => 'path/to/local-folder'
	),
	// This is the main Web application configuration. Any writable
	// CWebApplication properties can be configured here.
	'configWeb'=>array(
		'theme'=>'feel-the-music',
		'basePath'=>dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
		'name'=>'Radio Samhan',
		// Preloading 'log' component
		'preload'=>array('log'),
		// Autoloading model and component classes
		'import'=>array(
			'application.models.*',
			'application.components.*',
		),
		'behaviors'=>array(
			'ApplicationBehavior',
			'layout'=>'LayoutBehavior',
		),
		// Application components
		'components'=>array(
			'user'=>array(
				// enable cookie-based authentication
				'allowAutoLogin'=>true,
				'class'=>'WebUser',
			),
			// uncomment the following to enable URLs in path-format
			/*
			  'urlManager'=>array(
			  'urlFormat'=>'path',
			  'rules'=>array(
			  '<controller:\w+>/<id:\d+>'=>'<controller>/view',
			  '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
			  '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
			  ),
			  ),
			 */

			// Database
			'db'=>array(
				'connectionString'=>'', //override in config/mode_<mode>.php
				'emulatePrepare'=>true,
				'username'=>'', //override in config/mode_<mode>.php
				'password'=>'', //override in config/mode_<mode>.php
				'charset'=>'utf8',
			),
			// Error handler
			'errorHandler'=>array(
				// use 'site/error' action to display errors
				'errorAction'=>'site/error',
			),
		),
	),
	// This is the Console application configuration. Any writable
	// CConsoleApplication properties can be configured here.
	// Leave array empty if not used.
	// Use value 'inherit' to copy from generated configWeb.
	'configConsole'=>array(
		'basePath'=>dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
		'name'=>'Maico',
		// Preloading 'log' component
		'preload'=>array('log'),
		// Autoloading model and component classes
		'import'=>'inherit',
		// Application componentshome
		'components'=>array(
			// Database
			'db'=>'inherit',
			// Application Log
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					// Save log messages on file
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
				),
			),
		),
	),
);